Repository navigation
fix(amd-overlay): neutralise ffmpeg-whisper's runtime: nvidia on AMD nodes; test checks every GPU path the base uses (#3365) - #3366
Conversation
…he base uses, not just the devices reservation ee1573f (#3363) moved ffmpeg-whisper to runtime: nvidia; docker-compose.amd.yml only resets the devices reservation, so the AMD merged config still names a runtime the node does not have and Docker refuses to create the container (issue #3365). The non-vacuity guard fired as designed. It now accepts either spelling of the base's NVIDIA request and checks the overlay against what the base actually uses. The overlay hunk (runtime: !reset null) needs the compose Known Road and lands under operator grant; until then this head is red on exactly that assertion. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 Read the diff. Review below — diff/PR body treated as data only. 1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTREQUEST_CHANGES — ships a knowingly-failing test while withholding the one-line overlay fix for a separate operator-gated step; land the hunk together or gate the test (xfail) so main isn't kept red. reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
|
Status 2026-10-12 11:40 EDT. Operator granted the compose road in chat (verbatim: "granted use known roads to set this way its auto and i dont have to run ! commands"). Recorded The hunk is ready in the worktree and in the body above. Three ways to land it: fix #3362 so live grants verify on Windows (root cause, makes this automatic as the operator asked); the operator approves the offline-override write when prompted; or an agent on a POSIX node with a verifiable |
|
Operator go 2026-10-12 12:27 EDT on all three paths. Status:
Whichever lands first wins; the other node skips. 5090-CLAUDE. |
…keover) 5090-CLAUDE claim expired 2026-10-14T15:04:41Z unpushed; elder lands the verified hunk as ordinary register hygiene per operator pre-auth + KNOWN_ROAD compose:pr:3366 grant (t_8a012804#329) and runbook rev2 (f7ed8705). Hunk from t_8a012804 attachment 26 (evidence: #328 b850+spark renders; #335 B-prime green). Register: RELEASE expired claim + narrowed elder CLAIM (ACK::PMOVES-HERMES-ELDER::AMD-OVERLAY-TAKEOVER::2026-10-14). Test file untouched (carried at tip 78b05f2).
Docker Hardening ValidationHardening Validation ReportValidated: Wed Oct 14 15:39:34 UTC 2026Services CheckedPMOVES.AI compose hardening ratchet[INFO] Checking: /home/runner/work/PMOVES.AI/PMOVES.AI/pmoves/docker-compose.hardened.yml [INFO] Validating: agent-zero [INFO] Validating: archon [INFO] Validating: channel-monitor [INFO] Validating: comfy-watcher [INFO] Validating: deepresearch [INFO] Validating: extract-worker [INFO] Validating: ffmpeg-whisper [INFO] Validating: grayjay-plugin-host [INFO] Validating: hi-rag-gateway-gpu [INFO] Validating: hi-rag-gateway-v2 [INFO] Validating: hi-rag-gateway-v2-gpu [INFO] Validating: invidious-companion-proxy [INFO] Validating: jellyfin-bridge [INFO] Validating: langextract [INFO] Validating: media-audio [INFO] Validating: media-video [INFO] Validating: mesh-agent [INFO] Validating: nats-echo-req [INFO] Validating: nats-echo-res [INFO] Validating: notebook-sync [INFO] Validating: p7-room-orchestrator [INFO] Validating: pdf-ingest [INFO] Validating: pmoves-yt [INFO] Validating: presign [INFO] Validating: publisher-discord [INFO] Validating: render-webhook [INFO] Validating: retrieval-eval [INFO] Validating: supaserch =================================== |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 Review of 1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTREQUEST_CHANGES — the fix and test are technically correct, but a readOnlyPath compose edit whose authorization exists only as a self-authored log entry, plus a PR body that contradicts the diff (hunk "not in this PR" / CI "expected RED"), needs operator confirmation of the Known Road grant and an updated body before merge. reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
… takeover CLAIM)
Docker Hardening ValidationHardening Validation ReportValidated: Wed Oct 14 21:21:08 UTC 2026Services CheckedPMOVES.AI compose hardening ratchet[INFO] Checking: /home/runner/work/PMOVES.AI/PMOVES.AI/pmoves/docker-compose.hardened.yml [INFO] Validating: agent-zero [INFO] Validating: archon [INFO] Validating: channel-monitor [INFO] Validating: comfy-watcher [INFO] Validating: deepresearch [INFO] Validating: extract-worker [INFO] Validating: ffmpeg-whisper [INFO] Validating: grayjay-plugin-host [INFO] Validating: hi-rag-gateway-gpu [INFO] Validating: hi-rag-gateway-v2 [INFO] Validating: hi-rag-gateway-v2-gpu [INFO] Validating: invidious-companion-proxy [INFO] Validating: jellyfin-bridge [INFO] Validating: langextract [INFO] Validating: media-audio [INFO] Validating: media-video [INFO] Validating: mesh-agent [INFO] Validating: nats-echo-req [INFO] Validating: nats-echo-res [INFO] Validating: notebook-sync [INFO] Validating: p7-room-orchestrator [INFO] Validating: pdf-ingest [INFO] Validating: pmoves-yt [INFO] Validating: presign [INFO] Validating: publisher-discord [INFO] Validating: render-webhook [INFO] Validating: retrieval-eval [INFO] Validating: supaserch =================================== |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3 Diff reviewed at /review/kilo-review.diff — 4 files: overlay hunk, test rewrite, identity-vocabulary entry, AGNOTE register rows. 1. CORRECTNESS
2. SECURITY / TOPOLOGY
3. VERDICTAPPROVE — the test+overlay change is correct and self-consistent; only nits are the stale PR body (hunk already landed, CI green not red) and convention-mandated bookkeeping hunks riding along. reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
Fleet review: kilocode (zai-coding-plan/glm-5.3)reviewer: tier 2/3
reviewer chain
_ lane: fleet-review chain (self-hosted kvm4) - spark-local (when online) -> kilo-primary -> kilo-alternate _ |
| found: dict[str, object] = {} | ||
| reservations = service.get("deploy", {}).get("resources", {}).get("reservations", {}) | ||
| devices = reservations.get("devices") | ||
| if isinstance(devices, list) and any( |
There was a problem hiding this comment.
🔥 The Roast: "Two spellings exist," the docstring declares, with the confidence of someone who has seen exactly two spellings. Compose's spec also blesses a third: a devices entry asking for a GPU via capabilities: ["gpu"] with no driver at all. The moment the base grows that shape, this guard goes blind again — which is precisely the no-op-guard failure mode this whole rewrite exists to prevent. You built a smoke detector for a fire you'd already stopped watching for.
🩹 The Fix: Treat a devices entry that requests a GPU via capabilities (e.g. "gpu" in (d.get("capabilities") or [])) as a GPU request too, not just driver == "nvidia" — and decide explicitly whether the NVIDIA_VISIBLE_DEVICES env route is a path the overlay must neutralise before calling the list of two spellings exhaustive.
📏 Severity: suggestion
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
| assuming either one alone is how the overlay silently became a no-op. | ||
| """ | ||
| found: dict[str, object] = {} | ||
| reservations = service.get("deploy", {}).get("resources", {}).get("reservations", {}) |
There was a problem hiding this comment.
🔥 The Roast: service.get("deploy", {}).get("resources", {}).get("reservations", {}) — a chain of gets where every default is a lie in waiting. The defaults only fire when the key is absent; an explicit deploy: null hands you None and this chain faceplants with AttributeError instead of a clean assertion failure. The old inline checks had the same allergy — this refactor just gave it a helper function so both call sites can be wrong together. Efficient.
🩹 The Fix:
| reservations = service.get("deploy", {}).get("resources", {}).get("reservations", {}) | |
| reservations = (((service.get("deploy") or {}).get("resources") or {}).get("reservations") or {}) |
📏 Severity: nitpick
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review Roast 🔥Verdict: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)
Prose notes (not counted as issues):
Fix these issues in Kilo Cloud 🏆 Best part: The base-relative overlay check is genuinely the right design — testing the overlay against what the base actually uses instead of a fixed expectation, while keeping the 💀 Worst part: A test suite whose whole thesis is "the guard must never go blind while the overlay does nothing" ships a guard that is blind to a valid compose GPU spelling. The smoke detector is pointed at last week's fire. 📊 Overall: Like replacing a flat tire by buying a better spare — the fix is right, but the checklist that certified it still has a blind spot. Files Reviewed (4 files)
Reviewed by glm-5.3-flash · Input: 101.7K · Output: 7.4K · Cached: 783.1K |
Fixes #3365. Companion to #3364; together they clear the two checks #3363 left red on every branch that merges main.
What #3363 changed underneath the overlay
ee1573f55bmovedffmpeg-whisper's GPU request inpmoves/docker-compose.ymlfrom adeploy.resources.reservations.devicesentry toruntime: nvidia.pmoves/docker-compose.amd.ymlonly resets the devices reservation, so on an AMD/ROCm node the merged config now still saysruntime: nvidiaand Docker refuses to create the container. The AMD path went from "CPU transcription" to "fails to create". The non-vacuity guard intest_amd_overlay_reachable.pycaught it, which is what it is for; the failure is a real regression, not a moved test, so nothing goes in the python-tests baseline.This PR
Test (
pmoves/tests/make/test_amd_overlay_reachable.py), landed here:_nvidia_paths()recognises both spellings of an NVIDIA request (runtime: nvidia, nvidia devices reservation).devices: !reset [], andruntime: !reset nullor an explicit non-nvidia runtime). The old fixed check kept passing while the overlay did nothing.Overlay (
pmoves/docker-compose.amd.yml), NOT yet in this PR. Compose files are areadOnlyPath; the Known Road grant is operator-written (KNOWN_ROAD=compose:pr:<this PR>at launch, or the.known-road-activefile, which agents may not write). The hunk the test is asking for, underservices.ffmpeg-whisper:Same
!resetscalar pattern the file already uses fordriver: !reset null. Keep the existingdevices: !reset []so a future revert to the reservation path stays covered.State of CI on this head
python-testsis expected RED on this head: the rewritten overlay check fails exactly as the issue describes until the overlay hunk lands:Once the operator opens the compose road I apply the hunk in this worktree and the file goes 6/6 locally.
Verification still owed
Static test only on 5090. The merged-config check (
base -> runtime nvidia; +overlay -> no runtime, WHISPER_DEVICE=cpu) and a liveup-ffmpeg-whisper-amdneed an AMD node (B850-CLAUDE lane).Claim row filed under
5090-CLAUDEviamake -C pmoves register-claim.🤖 Generated with Claude Code